package com.sg.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 字典表同级节点通过父节点来实现
 *
 * @author xxx
 */
@Data
@Accessors(chain = true)
@TableName("oms_base_status_check_item")  //1-1-22状态校验项表
public class StatusCheckItem implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;


    /**
     * 状态校验项ID
     */
    @TableId(value = "status_check_item_id", type = IdType.ASSIGN_UUID)
    @NotNull(message = "statusCheckItemId不能为空")
    private String statusCheckItemId;
    /**
     * 检查项标识
     */
    @TableField(value = "check_item_code")
    @NotNull(message = "检查项标识不能为空")
    @Schema(description = "检查项标识")
    private String checkItemCode;
    /**
     * 内容对象类型编码 ORG_CHECK:组织 STATION_TYPE:岗位类型
     */
    @TableField(value = "object_type_code")
    @NotNull(message = "内容对象类型编码不能为空")
    @Schema(description = "内容对象类型编码")
    private String objectTypeCode;
    /**
     * 内容对象实例ID
     */
    @TableField(value = "entity_id")
    @NotNull(message = "内容对象实例ID不能为空")
    @Schema(description = "内容对象实例ID")
    private String entityId;
    /**
     * 是否已完成 TRUE:是 FALSE:否
     */
    @TableField(value = "is_complete")
    @NotNull(message = "是否已完成不能为空")
    @Schema(description = "是否已完成")
    private String isComplete;
    /**
     * 操作人就职记录ID
     */
    @TableField(value = "operation_induction_id")
    @NotNull(message = "操作人就职记录ID不能为空")
    @Schema(description = "操作人就职记录ID")
    private String operationInductionId;
    /**
     * 创建人就职记录ID
     */
    @TableField(value = "create_induction_id")
    @NotNull(message = "创建人就职记录ID不能为空")
    @Schema(description = "创建人就职记录ID")
    private String createInductionId;
    /**
     * 操作时间
     */
    @TableField(value = "operate_time")
    @NotNull(message = "操作时间不能为空")
    @Schema(description = "操作时间")
    private Date operateTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @NotNull(message = "创建时间不能为空")
    @Schema(description = "创建时间")
    private Date createTime;
    /**
     * 创建于空间ID
     */
    @TableField(value = "space_id")
    @NotNull(message = "创建于空间ID不能为空")
    @Schema(description = "创建于空间ID")
    private String spaceId;
    /**
     * 创建于联盟应用ID
     */
    @TableField(value = "app_id")
    @NotNull(message = "创建于联盟应用ID不能为空")
    @Schema(description = "创建于联盟应用ID")
    private String appId;
}
